<?php

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/

Route::get('/', function () {
    return view('welcome');
});

//********************后台***************************//
//隐士控制器
//后台
// Route::group(['middleware'=>'admindenglu'],function(){
Route::Controller('/admin/','AdminController');
//后台用户控制器
Route::Controller('/admin/user','UserController');
//后台分类控制器
Route::Controller('/admin/cate','CateController');
//后台商品控制器
Route::Controller('/admin/goods','GoodsController');
//后台友情链接管理
Route::Controller('/admin/links','LinksController');
//后台订单控制器
Route::Controller('/admin/indent','IndentController');

//网站配置
Route::Controller('/admin/config','ConfigController');
//网站维护
Route::Controller('/admin/weihu','ConfigController');

//评论
Route::Controller('/admin/content','ContentController');

// });
//后台登录
Route::Controller('/admin/denglu','DengluController');

//********************前台***************************//

Route::get('/home/show/{id}','HomeDetailController@show');

//前台
Route::Controller('/home/index','HomeController');

// 列表
Route::Controller('/home/goods','HomeGoodsController');

//注册
Route::Controller('/home/login','HomeLoginController');

//登录
Route::Controller('/home/denglu','HomeDengluController');

Route::Controller('/home/detail','HomeDetailController');

//用户页面   杜瑞刚
Route::Controller('/home/user','HomeUserController');

//评论
Route::Controller('/home/comment','HomeCommentController');


//商品详情
Route::get('/home/show/{id}','HomeDetailController@show');

//立即购买
Route::Controller('/home/liji','HomeLijiController');
